#import "ThistleWonderCell.h"


@implementation ThistleWonderCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self marbleEclipseHopeConfigUI];
	}
	return self;
}

- (void)setRadiance:(ThistleWonderModel *)radiance {
	_radiance = radiance;

	//: 配置cell的UI



[self.wispKaleidoscopeImageView sd_setImageWithURL:[NSURL URLWithString:radiance.elevate.stringValue] placeholderImage:nil];

}
//: _keepsakeButton 的点击事件
- (void)action_3 {}

- (UIButton *)keepsakeButton {
	if (!_keepsakeButton) {
	
        _keepsakeButton = [[UIButton alloc] initWithFrame:CGRectZero];
        _keepsakeButton.frame = CGRectMake(12, 33, 184, 197);
        UIImage *zestfulFlow = [UIImage imageNamed:@"images/icon_3.png"];
        if (zestfulFlow) {
	        [_keepsakeButton setImage:zestfulFlow forState:UIControlStateNormal];
        }
        [_keepsakeButton setTitle:@"button_3" forState:UIControlStateNormal];
        [_keepsakeButton setTitle:@"button_selected_3" forState:UIControlStateSelected];
        [_keepsakeButton setTitleColor:[UIColor colorWithRed:192/255.0 green:55/255.0 blue:94/255.0 alpha:1.0] forState:UIControlStateNormal];
        [_keepsakeButton setTitleColor:[UIColor colorWithRed:208/255.0 green:31/255.0 blue:91/255.0 alpha:0.5] forState:UIControlStateSelected];
        [_keepsakeButton addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
	}
	return _keepsakeButton;
}

- (UIImageView *)libertyIgniteNomadImageView {
	if (!_libertyIgniteNomadImageView) {
	
        _libertyIgniteNomadImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _libertyIgniteNomadImageView.contentMode = UIViewContentModeScaleAspectFill;
        _libertyIgniteNomadImageView.clipsToBounds = YES;
        _libertyIgniteNomadImageView.layer.cornerRadius = 19;
        _libertyIgniteNomadImageView.layer.masksToBounds = YES;
        UIImage *charisma = [UIImage imageNamed:@"images/image_4.png"];
        if (charisma) {
	        _libertyIgniteNomadImageView.image = charisma;
        }
	}
	return _libertyIgniteNomadImageView;
}

- (UITextField *)artistryJoyousTextField {
	if (!_artistryJoyousTextField) {
	
        _artistryJoyousTextField = [[UITextField alloc] initWithFrame:CGRectZero];
        _artistryJoyousTextField.size = CGSizeMake(31, 99);
        _artistryJoyousTextField.left = 5;
        _artistryJoyousTextField.top = 10;
	}
	return _artistryJoyousTextField;
}

//: self.questXenialButton 的点击事件
- (void)action_7 {}

- (void)marbleEclipseHopeConfigUI {

    //: 描述_0
    UITextField *sereneDream = [UITextField new];
    sereneDream.frame = CGRectMake(28, 10, 129, 78);
    self.windfallTextField = sereneDream;
    [self.contentView addSubview:sereneDream];


    //: 描述_1
    self.quenchXeroxTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.quenchXeroxTextField];
	[self.quenchXeroxTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(164);
		make.height.mas_equalTo(92);
		make.bottom.equalTo(@(27));
	}];


    //: 描述_2
    UIView *xenon = [UIView new];
    xenon.size = CGSizeMake(141, 97);
    xenon.left = 6;
    xenon.top = 49;
    self.whimsyVelvetView = xenon;
    [self.contentView addSubview:xenon];

	//: 描述_3
	[self.contentView addSubview:self.keepsakeButton];

	//: 描述_4
	[self.contentView addSubview:self.libertyIgniteNomadImageView];
	[self.libertyIgniteNomadImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(56);
		make.height.mas_equalTo(147);
	}];


    //: 描述_5
    UIImageView *hopefulUnity = [[UIImageView alloc] init];
    hopefulUnity.contentMode = UIViewContentModeScaleAspectFill;
    hopefulUnity.clipsToBounds = YES;
    hopefulUnity.layer.cornerRadius = 12;
    hopefulUnity.layer.masksToBounds = YES;
    UIImage *noodle = [UIImage imageNamed:@"images/image_5.png"];
    if (noodle) {
	    hopefulUnity.image = noodle;
    }
    self.wispKaleidoscopeImageView = hopefulUnity;
    [self.contentView addSubview:hopefulUnity];
	[self.wispKaleidoscopeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(100);
		make.height.mas_equalTo(96);
		make.top.equalTo(@(24));
		make.bottom.equalTo(@(15));
	}];

	//: 描述_6
	[self.contentView addSubview:self.artistryJoyousTextField];


    //: 描述_7
    self.questXenialButton = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *velvetRadiateGrumpy = [UIImage imageNamed:@"images/icon_7.png"];
    if (velvetRadiateGrumpy) {
	    [self.questXenialButton setImage:velvetRadiateGrumpy forState:UIControlStateNormal];
    }
    [self.questXenialButton setTitle:@"button_7" forState:UIControlStateNormal];
    [self.questXenialButton setTitle:@"button_selected_7" forState:UIControlStateSelected];
    [self.questXenialButton setTitleColor:[UIColor colorWithRed:26/255.0 green:220/255.0 blue:227/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.questXenialButton setTitleColor:[UIColor colorWithRed:65/255.0 green:86/255.0 blue:140/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.questXenialButton addTarget:self action:@selector(action_7) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.questXenialButton];
	[self.questXenialButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(148);
		make.height.mas_equalTo(176);
		make.top.equalTo(@(20));
		make.bottom.equalTo(@(24));
	}];


    //: 描述_8
    self.xenonView = [UIView new];
    self.xenonView.size = CGSizeMake(109, 60);
    self.xenonView.left = 11;
    self.xenonView.top = 6;
    [self.contentView addSubview:self.xenonView];
}


@end